public class demo {
    public static void main(String[] args) {
        //自动装箱
        int i = 10;
        Integer a = i;

        //自动拆箱
        int b = a;
        //显示装箱
        int c = 20;
        Integer d = Integer.valueOf(c);

        //显示拆箱：拆箱为自己指定的元素
        int e = d.intValue();
        double e1 = d.doubleValue();

        Integer a1 = 127;
        Integer b1 = 127;

        Integer c1 = 128;
        Integer d1 = 128;

        System.out.println(a1 == b1);
        System.out.println(c1 == d1);

    }
}
